package com.wgts.wgts.dagger.module;

import com.wgts.wgts.dagger.scope.ActivityScope;
import com.wgts.wgts.mvp.model.ICollectActivityModel;
import com.wgts.wgts.mvp.model.IJDGoodInfoActivityModel;
import com.wgts.wgts.mvp.model.imp.CollectActivityModel;
import com.wgts.wgts.mvp.model.imp.JDGoodInfoActivityModel;
import com.wgts.wgts.mvp.presenter.ICollectActivityPresenter;
import com.wgts.wgts.mvp.presenter.imp.CollectActivityPresenter;
import com.wgts.wgts.mvp.view.ICollectActivityView;
import com.wgts.wgts.netmodle.NetService;

import dagger.Module;
import dagger.Provides;

/*
 *
 *
 *   data:2018/10/79:25
 *
 */
@Module
public class CollectActivityModule {
    private ICollectActivityView view;

    public CollectActivityModule(ICollectActivityView view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    public ICollectActivityView provideView(){
        return view;
    }

    @ActivityScope
    @Provides
    public ICollectActivityModel provideModel(NetService netService){
        return new CollectActivityModel(netService);
    }


    @ActivityScope
    @Provides
    public ICollectActivityPresenter providePresenter(ICollectActivityView view, ICollectActivityModel model){
        return new CollectActivityPresenter(view, model);
    }
}
